import Images from '@ASSET/Images'
import { AdviceTitleMapITF, ServiceItemsMapITF } from '@INTERFACES/ServicePackITF'
import i18n from '@I18N'
import { StringMapITF } from '@INTERFACES/Common'

export enum TEMPLATE_STATUS_ENUM {
  Active = 'Active',
  Archived = 'Archived',
}

export enum PACK_STATUS_ENUM {
  Pending = 'Pending',
  Paid = 'Paid',
  Active = 'Active',
  Expired = 'Expired',
  Archived = 'Archived',
  Cancelled = 'Cancelled',
}

export enum TEMPLATE_TYPE_ENUM {
  PainManagement = 'PainManagement',
  PainMeasurement = 'PainMeasurement',
  PainVIP = 'PainVIP',
  XinMeiPainMeasurement = 'XinMeiPainMeasurement',
}

export enum DURATION_UNIT_ENUM {
  Forever = 'Forever',
  Month = 'Month',
  Season = 'Season',
  Year = 'Year',
}

export enum SERVICE_ITEMS_TYPE_ENUM {
  ConsultationCoupon = 'ConsultationCoupon',
  PhoneConsultationCoupon = 'PhoneConsultationCoupon',
  DoctorAdvice = 'DoctorAdvice',
  Evaluation = 'Evaluation',
  PersonalDoctor = 'PersonalDoctor',
  ExpertOpinions = 'ExpertOpinions',
  GreenChannel = 'GreenChannel',
  HealthConsultation = 'HealthConsultation',
  Commodity = 'Commodity',
}

export const ACTIVATION_STEPS_MAP = {
  BaseInfo: 'BaseInfo',
  HealthSurvey: 'HealthSurvey',
  SelectDoctor: 'SelectDoctor',
}

export const DURATION_UNIT_MAP = {
  Forever: '不限期',
  Month: '月',
  Season: '季度',
  Year: '年'
}

export const TEMPLATE_STATUS_MAP = {
  Pending: '立即购买',
  Paid: '立即激活',
  Active: '立即使用',
  Expired: '已过期',
  Archived: '',
  Cancelled: '',
}

export const SERVICE_ITEMS_MAP: ServiceItemsMapITF = {
  [SERVICE_ITEMS_TYPE_ENUM.ConsultationCoupon]: {
    icon: Images.servicePack.icon_cousul_rights,
    bg: Images.servicePack.bg_coupon_detail,
    vipIcon: Images.servicePack.icon_vip_cousul_rights,
    bgColor: '#47C690'
  },
  [SERVICE_ITEMS_TYPE_ENUM.PersonalDoctor]: {
    icon: Images.servicePack.prvivateDoctor_rights_icon,
    bg: Images.servicePack.prvivateDoctor_rights_bg,
    vipIcon: Images.servicePack.prvivateDoctor_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.ExpertOpinions]: {
    icon: Images.servicePack.second_consultation_rights_icon,
    bg: Images.servicePack.second_consultation_rights_bg,
    vipIcon: Images.servicePack.second_consultation_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.GreenChannel]: {
    icon: Images.servicePack.green_channel_rights_icon,
    bg: Images.servicePack.green_channel_rights_bg,
    vipIcon: Images.servicePack.green_channel_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.Evaluation]: {
    icon: Images.servicePack.basic_assessment,
    bg: Images.servicePack.green_channel_rights_bg,
    vipIcon: Images.servicePack.second_consultation_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.DoctorAdvice]: {
    icon: Images.servicePack.doctor_interpret,
    bg: Images.servicePack.green_channel_rights_bg,
    vipIcon: Images.servicePack.second_consultation_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.HealthConsultation]: {
    icon: Images.servicePack.green_channel_rights_icon,
    bg: Images.servicePack.green_channel_rights_bg,
    vipIcon: Images.servicePack.green_channel_rights_icon_vip,
  },
  [SERVICE_ITEMS_TYPE_ENUM.PhoneConsultationCoupon]: {
    icon: Images.servicePack.icon_phone_cousul_rights,
    isPhone: true,
    bg: Images.servicePack.bg_phone_coupon_detail,
    vipIcon: Images.servicePack.icon_phone_cousul_rights_vip,
    bgColor: '#57ACFA'
  },
  [SERVICE_ITEMS_TYPE_ENUM.Commodity]: {
    icon: Images.servicePack.icon_commodity_rights,
    bg: Images.servicePack.commodity_rights_bg,
    vipIcon: Images.servicePack.icon_commodity_vip_rights,
    btnTextColor: '#333735'
  },
}

export const COMMON_ADVICE_TITLE: AdviceTitleMapITF = {
  ManagementPlan: i18n.servicePack.pain_management()
}

export const SERVICE_PACK_ORDER_CANCEL_REASON: StringMapITF = {
  PaymentFailed: i18n.order.payment_timeout(),
  PatronCancelled: i18n.order.patron_cancelled()
}
